package com.mall.service.region;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mall.client.region.AreaService;
import com.mall.custom.dao.read.AreaReadMapper;
import com.mall.pojo.Area;
import com.mall.pojo.AreaExample;

@Service
public class AreaServiceImpl implements AreaService {

	@Autowired
	private AreaReadMapper areaReadMapper;
	@Override
	public Area getAreaByAreaId(Integer areaId) {
		
		return this.areaReadMapper.selectByPrimaryKey(areaId);
	}
	@Override
	public List<Area> getAreaListByExample(AreaExample example) {
		// TODO Auto-generated method stub
		return this.areaReadMapper.selectByExample(example);
	}

}
